import request from "@/utils/request";

//字典类型
export const getDictTypeList = params => {
    return request({
      url: '/sys/dict_type/list', 
      params
    })
} 

export const addDictType = data => {
    return request({
      url: '/sys/dict_type/add', 
      method: 'POST',
      data
    })
} 
  
export const getDictTypeDeail = params => {
    return request({
      url: '/sys/dict_type/detail', 
      params
    })
} 

export const editDictType = data => {
    return request({
      url: '/sys/dict_type/edit', 
      method: 'POST',
      data
    })
} 

export const deleteDictType = data => {
    return request({
      url: '/sys/dict_type/delete', 
      method: 'POST',
      data
    })
} 


//字典数据
export const getDictDataList = params => {
    return request({
      url: '/sys/dict_data/list', 
      params
    })
} 

export const addDictData = data => {
    return request({
      url: '/sys/dict_data/add', 
      method: 'POST',
      data
    })
} 
  
export const getDictDataDeail = params => {
    return request({
      url: '/sys/dict_data/detail', 
      params
    })
} 

export const editDictData = data => {
    return request({
      url: '/sys/dict_data/edit', 
      method: 'POST',
      data
    })
} 

export const deleteDictData = data => {
    return request({
      url: '/sys/dict_data/delete', 
      method: 'POST',
      data
    })
} 